package com.atguigu.atcrowdfunding.dao;

import com.atguigu.atcrowdfunding.bean.Role;

import java.util.List;
import java.util.Map;

/**
 * lcd  2020/3/31
 * Description:
 */
public interface RoleDao {

    List<Role> queryPage(Map<String, Object> map);

    Integer queryCount(Map<String, Object> map);

    void insert(Role role);

    Role findById(String id);

    void update(Role role);

    void delete(String id);

    void deletes(Map<String, Object> map);

    List<Role> findAll();

    void doAssign(Map<String, Object> map);

    void deleteBeforeRelation(Map<String, Object> map);
}
